package cn.iocoder.yudao.module.train.controller.admin.venue.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 场地 Response VO")
@Data
@ExcelIgnoreUnannotated
public class VenueRespVO {

    @Schema(description = "场地ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1808")
    @ExcelProperty("场地ID")
    private Integer id;

    @Schema(description = "场地编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("场地编码")
    private String venueNo;

    @Schema(description = "容纳人数", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("容纳人数")
    private Integer capacity;

    @Schema(description = "面积")
    @ExcelProperty("面积")
    private BigDecimal area;

    @Schema(description = "场地类型", example = "1")
    @ExcelProperty(value = "场地类型", converter = DictConvert.class)
    @DictFormat("train_venue_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String venueType;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}